anchor.diff:        {error, not_found}
     end.
   
  +handle_offsite_repos_lookup([]) -> false;
   handle_offsite_repos_lookup(App) when is_record(App, app) ->
     App#app.url;
   handle_offsite_repos_lookup(AppName) ->
  -  handle_offsite_repos_lookup(apps:find_by_name(AppName)).
  +  case apps:find_by_name(AppName) of
  +    App when is_record(App, app) -> 
  +      handle_offsite_repos_lookup(App);
  +    _ -> false
  +  end.
   
   handle_lookup_squashed_repos(Name) ->
     case ets:lookup(?TAB_NAME_TO_PATH, Name) of
       [{_Key, Path}] -> Path;
  -    _ -> []
  +    _ -> 
  +      SquashedDir = config:search_for_application_value(squashed_storage, "/opt/beehive/squashed", storage),
  +      {ok, Folders} = file:list_dir(SquashedDir),
  +      case lists:member(Name, Folders) of
  +        true ->
  +          Dir = filename:join([SquashedDir, Name]),
  +          filename:join([Dir, lists:append([Name, ".squashfs"])]);
  +        false ->
  +          false
  +      end
     end.  
   
   handle_find_application_location(App, #state{scratch_disk = ScratchDisk} = _State) ->
  
positive.code:          terminate/2, code_change/3]).
  
  -record(state, {
    scratch_disk
  }).
  
  -define(SERVER, ?MODULE).
  
negative.code:   ets:new(?TAB_NAME_TO_PATH, Opts),
    
    {ok, #state{
      scratch_disk = config:search_for_application_value(scratch_disk, "/opt/beehive/tmp", storage),
      squashed_disk = config:search_for_application_value(squashed_storage, "/opt/beehive/squashed", storage)
    }}.
  
  %%--------------------------------------------------------------------
  