added encoding and included the .stoll command