new php functions & map related stuff