fix decoder, and provide an option to remove attack rejection

#8