fixed randomly deleted lines, added rights