inject services and fix dumb errors