domain decoupled from angular for future use of webworkers