program_location() method and related improvements