some refactoring done, enough to start launching camera