remove unused css and templates, add variaous helpers