handle static vs instance