rake task and spnevent model