changing dict load to sync