add support for 4.2_d
fix many warnings and small bugs
add support for 4.2_d
fix many warnings and small bugs