added *.meta to gitignore
added flag logic