port this to TomahawkCache