little corrections

move attrs mixin inside else block to avoid mixing twice; remove redundant strict pragma on helper function