lance sourcecode