added support for background processes