allow prefix and config via static and constructor