init resserver