added timeout for loading app