fork code from  mtomis / jurlmap