fixed listen() method that allowed only the last callback to be excuted.