doing a better job of managing credits
fixed error in service definition