jspdir adn libdir add and insert fin #2