service should be defined after package installation