agent server... work in progress.