fixed bug in C tron lib & added stderr log warnings