updated to work with mg-rast or kbase auth