modified for local testing