fixed several deprecated API usage
update gitignore