working progress
added pagefold to offline mode