move some static code to module level