bug fix for file capture. added missing methods.
typo fix.
added missing import