added job control functions and struct usage