proper init in server side