gitignore and config in constructor