fixup of callback url
modified for files support