pass extensions as an option