close issues

close #234, close #238, close 239, close #237, close #216