added --profile flag