organized code into folders
remove autopublish, add publications and subscriptions