added server helpers for test code