fixed compiler errors
loads of stuff around configs