fixing aws endpoint