fixed buildremote and cleanup of remoteindices