flaky server test and hacked up implementation