1) fixed not working external libraries
2) added variable parser