move prompt setup to a dedicate file