tidying up code for pathing between libraries