added some snag and errors