Add extensions option

closes #51