time manager init changed
fixed some warning
remove #pragma
remove some more warnings