you know what, there's a nicer way to check this path