working on queueing
updated to fix crash
updated to fix crash
updated to fix crash