passing server instead of engine