added unlock option to remove lock and installed file