added method to ClientForAPI