moving extension to separate file