various functions edits

esp. function_exists added to actions