fix issues running from source