fixed appdir in bootstrap