major php changes... documentation will follow.