improved ff18 compatibility
downloadbinary and mitm function compatibility fixes