[fix] add ability to still pass in window for backward compatibility