auto register ctrl and srv