register/1 and install/0 are refactored