pass keep_detailed flag

close #505