updated to work with one jar with dependencies