updated document command to set profile to default if profile is not set