take remotePath into account