added memory queue (need tests for it though)