make it work under new chrome
remove unused function