move token creation to compile to fix order of operations bug on creating new tokens