lib assets insert code