improvements, bug fixes and background processing