fixed bug that allowed php code to be loaded more than once