server now takes 3 args