fixed paths, setting up train code