refactored systemd service