added redbean support
formated code