add better error for dev