fixed bugs, now runs on pleiades as serial job