Fixing 500 error when the API key is wrong
some small updates
adding some wsse stuff in