refactor to json config; works locally
run remotely on aws