have amdoptimize read input from stream. changes to support fireplace package build system