shared functions & paths