add error handling in get areas