added if statement
added operator for loading config