refactoring to using php-includes file