also add sitelib path to PERL5LIB + some refactoring