fix decorator and add file_loader