added camera capabilities if 'cap' is passed' and it will run locally with 'runlocal' passed in