improve logging, dependency handling, bundle processing logic, small fixes