add static check in Page.server