handle first Block, solve imports and layouts