public static Packet pop() throws Exception {
	// pops out a packet on the bottom of the queue
	//does other shit if necessary
		try { 
			Packet outgoingPacket = queue.pop();
			size = queue.size();
//System.out.println("POPP: " + Util.getHex(outgoingPacket.payload));
			return outgoingPacket;
			} catch (EmptyStackException e) { 
				System.out.println("Someone had popped an empty q!");
				return null;
			}
	}