fix bug that made it impossible to enable service

 also perform some syntax fixes in the backend