better error handling when aprofile cannot be found.