renamed _extras to extensions and moved hook AFTER the typical cases (see #52)