added library dependency load handling. Now it handles everything
properly:)