added brushmode support