added and implemented listen task
now using the listen task in the service