adjusted resource loading to be compatible with executing from jar