added fail/general notification functions, replaced exits