added in functionality for setting unique filename with userid