fix to work with ty > 0.1