pipe to avoid permissions issue