added functions and htaccess data