moved everything except main to libmurk