working on recording and rules adding