support pid as int