receives files properly