gui, rail, and encode uri stuff