add inline flags to all functions