fixed to cd back to original working directory when initializing