prepare library files