removed separate events function in queue constructor
added eventemitter call