convert to Habari 0.9 and make options configurable