added method for firing events, few renaming for the sake of naming conventions
ignorning pid files