update messages again
refactor repo writing