fix: -snl when using foreign blocks; fix: remove extra "\n" when using foreign blocks