add server() function to .functions