a simple relay server in Java