added filename capability to requestoptions. fixed 32/64 bit issues in callbacks.