performance stuff and added alertify