move service to top of file