changed to php
cleanup and final setup