mostly cleaning up
some basic amf necessities