handling install and sync for devices