add pkg dir to .gitignore
adapt to gem