better error handling; testing null model name