fix loading by app dir vs entry point