clean core php lib