update to use text method, fixes #1