added error catching for module and faculty