add less and rewrite some files