improve error handling in seed methods and gillespie method