catch embed errors