export method only if it was defined