             socket.write_mesg('json', message.error(id:mesg.id, error:err))
     )
 
-move_file_in_project = (socket, mesg) ->
+events.move_file_in_project = (socket, mesg) ->
     user = username(mesg.project_id)
     async.series([
         (c) ->

            socket.write_mesg('json', message.error(id:mesg.id, error:err))
    )


remove_file_in_project = (socket, mesg) ->
    user = username(mesg.project_id)
    async.series([
        (c) ->

# the readFile function fails, e.g., if the file doesn't exist or the
# project is not open.  We send the read file over the socket as a
# blob message.
events.read_file_from_project = (socket, mesg) ->
    data = undefined
    async.series([
        (cb) ->
