added php dir.  checking eliminate function