added config fallback if no config object has been passed