remove dequeue[-item] - cant's see use for them
WIP - struggling with programatically created functions - they can not be pickled