added main() for stand alone testing