first version complete with handlebar and prompt support