another workaround for type handling /issue #223