added caching and processing of css
minor refactoring