improvents & enhancements. ##43 fix. fix of ApplicationFactory bug