fixed some compile error
again fixed some errors
cant do this anymore...try to do another way