works both with dws and as standalone