added experimental code for remote widgets