Adding sandbox support for Admin API
handle exceptions better
do not force mode attr on credentials