added auth,mresource, api