jialinxiao's basic lib