remove threads, add brightness support