server: make sure commands are handled and return