add custom function to existing library files