update config and static middleware with minor changes