make sure 'from' isn't null