added ok command and registration module