refactor flymake setting
some minor refactoring