added support for external libraries, started JSON level parser