made server plotting work