source script instead of running it
use function names
adapt sample file