add basic amf support.