adding PHP functionality