bugfix if function doesn't exist