fixed issues with ignoring empty lines