fix Compile errors + version 1.0