added scduler job and some fuctionality