setup the listener class

Also set dependecies correctly for serer