application logic running for local server