fixed blankline problem. added more exception handling