initial code loadup