move prompt helper to make open sourcing and deprecation