add reload lua api,fix signal bug