moved set_custom_prompt() into lib/