add query parameter for setting the initial code