this is broken, and ph includes this functionality these days
fix undef warning