made a couple of correctiosn to get running on clusster