make sure 'appURL' is not nil