some tweaks on twirl compile