make dist working (except for server)