client: added map rendering regen function
server: added main and config (same from client)