fine tuning

modify libs
add the possibility to work in different environment
fine tuning