added --profile option