change from getAMF to getURL with parameter amf= True