BUg where if options is undefined its broken