server: add function main