added software reset trick