add resolve method to camera
change socket logic