split status and setup into different files