make it work as standalone