fix problem with extra newlines
switch out catchblock for conditional block