move promisc to its own function