fix package.json typo
add logic for tying function calls to options