setup environment before application initialization