converted line endings
added simplified _translateSpec() implementation that does not rely on global dependencies