impor script fixes
FIX: regression, ESC is not captured correctly