AMC fix

Uses  ios streams