run support, fixed some bugs