fixed function name reversal
attempt adding print support to the API