should add exit() after every header()