move extensions declaration