refactoring based on mew AWS CLI