sprite init to init and login and rubocop