clean trailing white spaces
add scheduler feature