add some code to libs