basic templating and core lib files migrated