refactor sharecam