change to aws endpoint