more EP:PI stuff and refactored seeds.rb to not depend on hardcoded constants