reindent and implement deadline calls