fix args to open, adjust miscellany