move cache param to options, add json transformer
add get method to return object