changed conn to ec2conn
renamed few functions, need to refactor return statements