remove working directory ; better document parameters