added branch prompt constructor