A better approach to handle different environments
Added warning exception & encryption utils