document server helper functions