added helper class
added space and file events