replace Queue module with erlangs queue lib