app config fixes and static dir serving