Fixing middeware and myServer calls