fix gitignore and linkstate