minor revision to allow more flexibility in prompt customization