helper and utility classes for php