adding logging, renaming to JavaD