line following in separate file