finished of fixing static linking of pages