clean up mangle
clean up cipher