ref #14 remove tabs and trim some lines