encoding and launch