added API authentication
set defaut output to json