more C-ish filepackage interface.