start porting over thmanual