removing ec2 config + adapting java env