use flag package to reduce file size