add .gitignore, fix cast to pr