added generation fail check to dev build