format.amf3 and stuff

Need to organize better