API: registration now abstracts file opening