add .gitkeep
replace deprecated methods.