fixed an bug, handlers for outbound traffic were in the wrong order