add trickes, change encoding