updated receive to receive multiple files