fixed ticket insertion
some files updated