functionalized the get_remote call so that it can be sourced for use in other scripts