Move sources into io module