tenatively finished new file dialogue + helper methods in server