allow defining jobs with function only

- new api for jobs - function only