added copy files, server side functionality