add the less mode support