modified packet api, various changes to sync. host api removed (not needed)