adjust behavior of java's get