added filetransfer and debugging