render thread... some little fixes