better fd restoring - ps no longer breaks