more startup stuff, and the beginning of a error code checkers