code-style improvements, setup for better date filter handling