fixed purge by id, added install from dir, setup