refactor logError + work on css