added import os for relative extension path for router rules