slightly working appdirectory-build