run and read codes