add usage, change encoding