moved setup into init method