some refactoring
file modifiers, connect, beginning for control statements