moved static construction to separate method for unit testing