add sleep for lua