streamlined functions so they can be called from the source command