workaround for static type checking problem