add spec for output
add amqp support