adding getProcessId() function to sys