started mimicing java api