change bind signature so it can take an optional path