fixed errors with video library and process count