throw errors when src and out are omitted