fixes to main path