split for remoteforward and localforward