extract some method from handlers
Merge remote-tracking branch 'fack_api/master'
templete finished