fixed crash when not started as child process
removed unused file