error on no connection to module
error handling added to example