fixed some compile issues; added some skeletons