split out framework setup stuff to separate file, added lib