Revert "update code"

This reverts commit d38dd729f2f316ac4e04f00cf00b8c2656ab6995.
update config for ec2 and local
updating config to support different hw