add ts filtering to endpoints

fixes #256