added option for localhost