small fixes
Added application layer foundation