more work with avoiding FD-related errors