extracting block selection to its own file