new api for dependency management
removing old scala files rewritten in Java