moved to site.css
lots of error handling (emit) changes

also templates