fix deprecated directive and add file  to gitignore