svc

better main loop