ignoring directories
ensure cortina directory
catch more input errors
python 3 compatiblity