fixed htaccess and other minor issues