server define turned into route and channel for server and socket execution