fix for compatibility with old version