Move down result declaration
Load server config first
In real case you want to run this app either encrypted if not secure or encrypted/secure. So make sure we control this behavour from server, ie encryption either on or off