rewrite started, sidebar + lib seperated
rewrite complete