added encoding stuff