fix for aws endpoint