use try except to compatable for running on super computer