added debug after 'create if needed' execution