add support for entitlements, make auto down less prone to errors, add some features