added htaccess and json api