consider actions when minimizing, fixes #12