add option to switch between static and dynamic types