Outlines of imperfect and disordered mental action