cleaned up php service