build up basic framework