app working with local and remote server