add functions for putting messages on the input-queue to events namespace
remove unused require
change queue processing timeout to 1ms