init bunch of stuff