injecting server dependencies