refactor logic to load easyrtc libs