oops, forgot to remove debug exit() statement