jlock implementation
more work on the parsing