fixed aws issue with security