changed pegasus version to use head