improve local testing