modified how files are handled by server

Signed-off-by: Cory Feitelson <cfeitelson@roovy.com>