fixing require statements, updating packages