register commands and remove warnings