added use statements and fixed method calls on serializer
fixed service configuration