replace lib file with main file