updated extensions
fixed inversion workflow for BEGIN!=1
updated optimization test