adapted code to new maven repo