fix #116, added lucidity flag