convert to maven and fix dependency issues